import request from '@/utils/request'

// 查询工作绩效列表
export function listWerror(query) {
  return request({
    url: '/sl/werror/list',
    method: 'get',
    params: query
  })
}

// 查询工作绩效详细
export function getWerror(werrorId) {
  return request({
    url: '/sl/werror/' + werrorId,
    method: 'get'
  })
}

// 新增工作绩效
export function addWerror(data) {
  return request({
    url: '/sl/werror',
    method: 'post',
    data: data
  })
}

// 修改工作绩效
export function updateWerror(data) {
  return request({
    url: '/sl/werror',
    method: 'put',
    data: data
  })
}

// 删除工作绩效
export function delWerror(werrorId) {
  return request({
    url: '/sl/werror/' + werrorId,
    method: 'delete'
  })
}
